<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules//vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(user,index) in users"  v-if="user.gander=='女'">
                {{index}}+{{user.name}} == {{user,age}}
            </li>
            <span v-for="(v,k,i) in user">
                {{v}}-{{k}}-{{i}}
            </span>
        </ul>

       
        <ul>
            <li v-for="(num,index) in nums" :key="index">
                {{index}}
            </li>
        </ul>
        
    </div>  
    <script>
        new Vue({
            el: "#app",
            data: {
                users :[
                    {name:'张三',gander:'男',age:21},
                    {name:'果盘麒麟',gander:'男',age:22},
                    {name:'李四',gander:'男',age:30},
                    {name:'娜娜',gander:'女',age:20},
                    {name:'莉莉',gander:'女',age:18}
                ],
                nums:[1,2,3,4]
            },
            methods: {
                
            }
        })
    </script>

</body>

</html>